.class public Lorg/microemu/log/LoggingEvent;
.super Ljava/lang/Object;
.source "LoggingEvent.java"


# static fields
.field public static final DEBUG:I = 0x1

.field public static final ERROR:I = 0x4

.field public static final INFO:I = 0x2

.field public static final WARN:I = 0x3


# instance fields
.field protected data:Ljava/lang/Object;

.field protected eventTime:J

.field protected hasData:Z

.field protected level:I

.field protected location:Ljava/lang/StackTraceElement;

.field protected message:Ljava/lang/String;

.field protected throwable:Ljava/lang/Throwable;


# direct methods
.method public constructor <init>()V
    .locals 2

    .prologue
    .line 58
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 49
    const/4 v0, 0x0

    iput-boolean v0, p0, Lorg/microemu/log/LoggingEvent;->hasData:Z

    .line 59
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lorg/microemu/log/LoggingEvent;->eventTime:J

    .line 60
    return-void
.end method

.method public constructor <init>(ILjava/lang/String;Ljava/lang/StackTraceElement;Ljava/lang/Throwable;)V
    .locals 0
    .parameter "level"
    .parameter "message"
    .parameter "location"
    .parameter "throwable"

    .prologue
    .line 63
    invoke-direct {p0}, Lorg/microemu/log/LoggingEvent;-><init>()V

    .line 64
    iput p1, p0, Lorg/microemu/log/LoggingEvent;->level:I

    .line 65
    iput-object p2, p0, Lorg/microemu/log/LoggingEvent;->message:Ljava/lang/String;

    .line 66
    iput-object p3, p0, Lorg/microemu/log/LoggingEvent;->location:Ljava/lang/StackTraceElement;

    .line 67
    iput-object p4, p0, Lorg/microemu/log/LoggingEvent;->throwable:Ljava/lang/Throwable;

    .line 68
    return-void
.end method

.method public constructor <init>(ILjava/lang/String;Ljava/lang/StackTraceElement;Ljava/lang/Throwable;Ljava/lang/Object;)V
    .locals 0
    .parameter "level"
    .parameter "message"
    .parameter "location"
    .parameter "throwable"
    .parameter "data"

    .prologue
    .line 71
    invoke-direct {p0, p1, p2, p3, p4}, Lorg/microemu/log/LoggingEvent;-><init>(ILjava/lang/String;Ljava/lang/StackTraceElement;Ljava/lang/Throwable;)V

    .line 72
    invoke-virtual {p0, p5}, Lorg/microemu/log/LoggingEvent;->setData(Ljava/lang/Object;)V

    .line 73
    return-void
.end method


# virtual methods
.method public getData()Ljava/lang/Object;
    .locals 1

    .prologue
    .line 76
    iget-object v0, p0, Lorg/microemu/log/LoggingEvent;->data:Ljava/lang/Object;

    return-object v0
.end method

.method public getEventTime()J
    .locals 2

    .prologue
    .line 101
    iget-wide v0, p0, Lorg/microemu/log/LoggingEvent;->eventTime:J

    return-wide v0
.end method

.method public getFormatedData()Ljava/lang/String;
    .locals 1

    .prologue
    .line 89
    invoke-virtual {p0}, Lorg/microemu/log/LoggingEvent;->hasData()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 90
    invoke-virtual {p0}, Lorg/microemu/log/LoggingEvent;->getData()Ljava/lang/Object;

    move-result-object v0

    if-nez v0, :cond_0

    .line 91
    const-string v0, "{null}"

    .line 96
    :goto_0
    return-object v0

    .line 93
    :cond_0
    invoke-virtual {p0}, Lorg/microemu/log/LoggingEvent;->getData()Ljava/lang/Object;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    .line 96
    :cond_1
    const-string v0, ""

    goto :goto_0
.end method

.method public getLevel()I
    .locals 1

    .prologue
    .line 105
    iget v0, p0, Lorg/microemu/log/LoggingEvent;->level:I

    return v0
.end method

.method public getLocation()Ljava/lang/StackTraceElement;
    .locals 1

    .prologue
    .line 109
    iget-object v0, p0, Lorg/microemu/log/LoggingEvent;->location:Ljava/lang/StackTraceElement;

    return-object v0
.end method

.method public getMessage()Ljava/lang/String;
    .locals 1

    .prologue
    .line 113
    iget-object v0, p0, Lorg/microemu/log/LoggingEvent;->message:Ljava/lang/String;

    return-object v0
.end method

.method public getThrowable()Ljava/lang/Throwable;
    .locals 1

    .prologue
    .line 117
    iget-object v0, p0, Lorg/microemu/log/LoggingEvent;->throwable:Ljava/lang/Throwable;

    return-object v0
.end method

.method public hasData()Z
    .locals 1

    .prologue
    .line 85
    iget-boolean v0, p0, Lorg/microemu/log/LoggingEvent;->hasData:Z

    return v0
.end method

.method public setData(Ljava/lang/Object;)V
    .locals 1
    .parameter "data"

    .prologue
    .line 80
    iput-object p1, p0, Lorg/microemu/log/LoggingEvent;->data:Ljava/lang/Object;

    .line 81
    const/4 v0, 0x1

    iput-boolean v0, p0, Lorg/microemu/log/LoggingEvent;->hasData:Z

    .line 82
    return-void
.end method
